<html>
<#include "../common/header.ftl">

<body>
<#include "../common/title.ftl">
<div class="user">
    <ul class="userul">
        <li>
            <input class="inp" type="text" placeholder=" 请输入查询的用户名"/>
        </li>
        <li>
            <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
        </li>
        <li>
            <div class="img">

            </div>
        </li>
    </ul>



</div>
<div id="wrapper" class="toggled">

    <#--边栏sidebar-->
    <#include "../common/nav.ftl">

    <#--主要内容content-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th>用户Id</th>
                            <th>用户名称</th>
                            <th>用户密码</th>
                            <th>手机号码</th>
                            <th>用户类型</th>
                            <th>用户等级</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list users as user>
                        <tr>
                            <td>${user.uid}</td>
                            <td>${user.username}</td>
                            <td>${user.password}</td>
                            <#if (user.phone)??>
                                <td>${user.phone}</td>
                                <#else>
                                <td>NULL</td>
                            </#if>
                            <td>${user.type}</td>
                            <#if (user.level)??>
                                <td>${user.level}</td>
                            <#else>
                                <td>NULL</td>
                            </#if>
                            <td>${(user.datetime?string('yyyy-MM-dd'))}</td>
                            <td>
                                <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">添加</button>
                                <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">删除</button>

                            </td>
                        </tr>
                        </#list>
                        </tbody>
                    </table>
                </div>
                <#--操作-->
                <#--<div class="col-md-12 column">-->
                    <#--<a href="#" type="button" class="btn btn-default btn-primary">修改</a>-->
                <#--</div>-->
            </div>
        </div>
    </div>
</div>
</body>
</html>